// store.js
//调用 legacy_createStore 并且重命名为  createStore
import { legacy_createStore as createStore } from 'redux'
import { reducer } from './reducers' // 假设你已经定义了一些 reducer  , 这里是注册reducer
import { composeWithDevTools } from '@redux-devtools/extension'

const store = createStore(reducer, composeWithDevTools())
export default store
